<?php
$this->breadcrumbs = array(
    'Users' => array('index'),
    $model->user_id,
);
?>

<div class="box">
    <header>
        <h5><i class="icon icon-user"></i>View user # <?php echo "{$model->user_id} ({$model->display_name})" ?></h5>
    </header>
    <div class="body">

        <?php
        $this->widget('bootstrap.widgets.TbDetailView', array(
            'data' => $model,
            'attributes' => array(
                'user_id',
                'username',
                'email',
                'display_name',
                array(
                    'name' => 'type',
                    'value' => ucfirst($model->type)
                ),
                array(
                    'name' => 'status',
                    'value' => $model->getStatusText()
                ),
                array(
                    'name' => 'joined',
                    'value' => date('Y-m-d', $model->joined)
                ),
                'first_name',
                'last_name',
                'gender',
                'social_provider',
                'social_uid',
                'bio',
                array(
                    'name' => 'last_login_time',
                    'value' => date('Y-m-d H:i:s', $model->last_login_time)
                ),
                'last_login_ip',
                'country',
                'state',
                'city',
                'address',
                'phone',
                'telephone',
                'mobile',
                'postcode',
                'featured',
                array(
                    'name' => 'avatar',
                    'type' => 'raw',
                    'value' => CHtml::image($model->getAvatarUrl('thumb'))
                ),
                'webpage',
                'timezone',
                'language',
            ),
        ));
        ?>

    </div>
</div>
